package com.gitee.wsl.ext.bitcode

/** Returns the bits in memory of [this] float */
fun Float.reinterpretAsInt(): Int = this.toRawBits()
/** Returns the bits in memory of [this] float */
fun Double.reinterpretAsLong(): Long = this.toRawBits()

/** Returns the float representation of [this] memory bits */
fun Int.reinterpretAsFloat(): Float = Float.fromBits(this)
/** Returns the float representation of [this] memory bits */
fun Long.reinterpretAsDouble(): Double = Double.fromBits(this)